/**********************************************************************************************************************
 * @file    gnss_info_process.h
 * @author  Queclink Jason.huang
 * @date    2019-01-03
 * @brief   About the processing of GNSS positioning information.
 *
 * Copyright (C) 2018 Queclink Wireless Solutions (ShenZhen) Co., Ltd. All Rights Reserved.
 *
 * @attention
 *
 * @usage
 *
 *********************************************************************************************************************/
#ifndef __GNSS_INFO_PROCESS_H
#define __GNSS_INFO_PROCESS_H
#include <math.h>
#include <gnss_public.h>

#ifdef __cplusplus
extern "C" {
#endif

void gnss_info_proc(struct fix_info *info);

void gnss_signal_monitor_init(void);

/* 更新卫星信息
 * info 最新的卫星信息
 * sv_index 指示卫星系统 SV_GPS/SV_GLONASS/SV_GALILEO/SV_BEIDOU
 */
void gnss_sat_info_update(struct sat_info_single *info, uint8_t sv_index, uint8_t signal_id);

bool gnss_signal_is_fine(void);

void gnss_usable_sv_update(struct usable_sv_t *usable_sv);

void gnss_signal_best_get(uint8_t *signal, uint8_t count);
void gnss_best_signal_set(uint8_t *signal, uint8_t count);

#ifdef __cplusplus
}
#endif

#endif


